package com.yuanhua.sms.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class SmsService {
    private static final Logger logger = LoggerFactory.getLogger(SmsService.class);
    @Value("${template}")
    private String templateCode;

    private String templateParam;

    @Autowired
    @Qualifier("aliYunSendMessage")
//    private AliYunSendMessage aliYunSendMessage;

    public String send(String phone, String code, int expireMinutes) {
        templateParam = "{\"code\":\"" + code + "\"}";
//        return aliYunSendMessage.sendMessage(phone, templateCode, templateParam);
        return "ok";
    }




}
